package com.xindacloud.sms.console.system.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xindacloud.sms.console.result.Result;
import com.xindacloud.sms.console.system.dto.SmsSubmissionRecordDTO;
import com.xindacloud.sms.console.system.entity.SmsSubmissionRecord;
import com.xindacloud.sms.console.system.service.ISmsSubmissionRecordService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 短信发送记录 前端控制器
 * </p>
 *
 * @author czc
 * @since 2019-10-15
 */
@Api(tags = {"短信提交记录模块"})
@RestController
@RequestMapping("/api/v1/sms-submission-record")
public class SmsSubmissionRecordController {

	@Autowired
	private ISmsSubmissionRecordService smsSubmissionRecordService;
	
	@ApiOperation(value = "短信提交记录列表",response=SmsSubmissionRecord.class)
	@PostMapping(value = "/getSmsSubmissionRecordList")
	public Result getSmsSubmissionRecordList(@RequestBody SmsSubmissionRecordDTO smsSubmissionRecordDTO) {
	    return smsSubmissionRecordService.getSmsSubmissionRecordList(smsSubmissionRecordDTO);
	}
}
